﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace Vit.Mvc.DataAnnotations
{
    [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property, AllowMultiple = false)]
    public class EditAttribute : Attribute
    {
        public EditAttribute()
        {
            ControlType = ControlType.TextBox;
            Visible = true;
            Order = 1;
        }

        public ControlType ControlType { get; set; }
        public bool Visible { get; set; }
        public int Order { get; set; }
    }
}
